import xlwt

# 创建book,并设定编码
workbook = xlwt.Workbook(encoding='ascii')
#创建新的sheet表
worksheet = workbook.add_sheet('new sheet')
# 向单元格中写入内容
worksheet.write(0,0,'hello')
worksheet.write(2,1,'world')

# 设置行高
style = xlwt.easyxf('font:height 720;')
# 选择设定样式的行
row = worksheet.row(0)
# 添加样式
row.set_style(style)

# 保存
workbook.save('test4.xls')